package com.fifth.common.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author 第五组
 * @since 2022-08-31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("e_permission")
@ApiModel(value = "Permission对象", description = "")
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty("父级id")
    private String pid;

    @ApiModelProperty("权限名字")
    private String pName;

    @ApiModelProperty("链接")
    private String url;

    @ApiModelProperty("图标")
    private String icon;

    @TableField(exist=false)    //表示此属性不是数据库中的列。
    private List<Permission> children;

}
